package factory;

import gamehandlers.GameHandler;
import gui.GameFrame;
import interactions.CollisionInteraction;
import java.awt.Image;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Scanner;

import sprite.Sprite;
import updater.InteractionUpdater;

/**
 * @author guytracy
 * 
 * This is test code. Its bad. Please ignore
 */
public class FactoryTest {
   
    
    public FactoryTest() {
        //GameFrame gameFrame = new GameFrame("Hello", "English", 4);
        //GameHandler gameHandler = new GameHandler
        /*File firstLevel = new File("resources/testLevel1");
        Boolean canIRead = firstLevel.canRead();
        System.out.println(canIRead);
        try {
            Scanner input = new Scanner(firstLevel);
            Scanner line = new Scanner(input.nextLine());
            String type = line.next();
            System.out.println(type);
        }
        catch (FileNotFoundException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        
        myFactory = new Factory("1", firstLevel);
        InteractionUpdater myIupdate = myFactory.getInteractionUpdater();
        //Image newImage = myFactory.getImage("alienship");*/
        File testLevela = new File("resources/SpriteLevel1");
        SpriteFactory spriteFactory = new SpriteFactory();
        GameHandler gh = new GameHandler();
        Collection<Sprite> spriteList = spriteFactory.getSprites(testLevela, gh);
        
        File iTestFile = new File("resources/ReactionLevel1");
        InteractionFactory interactionFactory = new InteractionFactory();
        CollisionInteraction colInteraction= new CollisionInteraction();
        interactionFactory.setReactionMap(colInteraction, iTestFile, gh);
        
        
    }
    
    public static void main(String[] arg) {
        FactoryTest tester= new FactoryTest();
    }
}
